import random
print("欢迎来到猜数字游戏")
guess = int((input("请输入一个数字:")))
number = random.randint(1, 100)
while guess!=number:
    if guess<number:
        print("猜小了")
    elif guess>number:
        print("猜大了")
    print("请重新输入一个数字:")
    guess = int(input())
    
print("猜对了") 
      